package com.zxc.oauth.exception

import java.lang.RuntimeException

class OAuthException : RuntimeException{

    var code: Int

    constructor(e: OAuthExceptionCode): super(e.getMessage()){
        this.code = e.getCode()
    }

    constructor(e: OAuthExceptionCode, throwable: Throwable): super(e.getMessage(), throwable){
        this.code = e.getCode()
    }

    constructor(code: Int, message: String): super(message){
        this.code = code
    }

    constructor(code: Int, message: String, throwable: Throwable): super(message, throwable){
        this.code = code
    }
}